package com.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("t_news")
public class News {
    private Integer id;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addTime;
    private String title;
    private String introduction;
    private String typeName;
    private String publisher;
    private String avatarPath;
    private Integer clickCount;
    private Date lastClickTime;
    private Integer thumbsUpCount;
    private Integer thumbsDownCount;
    private Integer favoritesCount;
    private String imagePath;
    private String content;
}